<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>TOKBOX Video Conference</title>
</head>

<body>

	<table cellpadding="4" cellspacing="0">
	    <tr>
	        <!-- Banner row across the top -->
	        <td width="250" bgcolor="#FF99FF">
	        <td bgcolor="#FF99FF">&nbsp;  </td>
	
	        <td width="550" height="80" bgcolor="#FF99FF">
	            <p align="left">
	                <font size="6">[${user}] Logged in for Video Chat</font>
	            </p>
	        </td>
	    </tr>
	</table>

	<b> Below are your Connections</b>

	<form method="POST" action="prevideochat.do">
	    <table>
	        <c:forEach var="tok" varStatus="status" items="${tokboxList}">
	        	<c:if test='${tok.userID != user}'>
		            <tr>
		            	<td> ${tok.userID} : </td>
		                <!--  <td> <a href="videochat.do?userID=${tok.userID}&type=request">Request Video Chat</a> &nbsp;&nbsp;&nbsp;&nbsp;</td> -->
		                	<td> <a href="">Request Video Chat</a> &nbsp;&nbsp;&nbsp;&nbsp;</td>
		                <!--  <td><a href="videomail.do?userID=${tok.userID}&type=videomail"> Send Video Mail</a></td>  -->
		                <c:if test="${tok.isActive=='1'}">
		                	<td><a href="videochat.do?userID=${tok.userID}&type=sessionexisted"> Connect with ${tok.userID}</a></td>
		                </c:if>
		            </tr>
		            <tr><td>&nbsp;</td></tr>
	        	</c:if>
	        </c:forEach>
	        
	        <tr>
				<td colspan="2" align="center"> <a href="videochat.do?userID=${user}&type=newown">Make a Connection for chat</a></td>
	        </tr>
	    </table>
	</form>

</html>